package org.hcyspartnoc.luoxin.service.chat;


import com.baomidou.mybatisplus.extension.service.IService;
import org.hcyspartnoc.luoxin.common.core.PageBean;
import org.hcyspartnoc.luoxin.common.exception.chat.ChatMessageException;
import org.hcyspartnoc.luoxin.common.exception.framework.AuthException;
import org.hcyspartnoc.luoxin.pojo.dto.chat.ChatMessageLikeDto;
import org.hcyspartnoc.luoxin.pojo.po.chat.ChatMessagePo;
import org.hcyspartnoc.luoxin.pojo.vo.chat.ChatMessageVo;

public interface IChatMessageService extends IService<ChatMessagePo> {
    PageBean<ChatMessagePo, ChatMessageVo> queryPageByToken(int currentPage, int pageSize, String sessionId) throws AuthException;

    void modifyLike(ChatMessageLikeDto chatMessageLikeDto) throws ChatMessageException, AuthException;

    void removeMessage(Long messageId) throws ChatMessageException, AuthException;
}
